<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="../css/questionManagerStyle.css">
	<script src="https://cdn.bootcss.com/crypto-js/3.1.9/crypto-js.min.js"></script>
    <!-- use xlsx.full.min.js from version 0.20.1 -->
    <script lang="javascript" src="https://cdn.sheetjs.com/xlsx-0.20.1/package/dist/xlsx.full.min.js"></script>
    <title>试题管理</title>
</head>
<body>
    <h2 style="text-align: center;">试题管理</h2>
    <table style="background-color:coral;text-align: center" id="questionTable">   
    
    </table>
    
    <table id="managerTable">
        <tr>
            <td><h3>添加试题</h3></td>
            <td>
               <select name="" id="questionType" onchange="answerChange()" >
                    <option value=""></option>
                    <option value="单选">单选</option>
                    <option value="多选">多选</option>
                    <option value="填空">填空</option>
                    <option value="简答">简答</option>
               </select>
            </td> 
            <td>
                <textarea id="questionStem"></textarea>
            </td>
            <td>
                <textarea id="questionA"></textarea>
            </td>
            <td>
                <textarea id="questionB"></textarea>
            </td>
            <td>
                <textarea id="questionC"></textarea>
            </td>
            <td>
             <textarea id="questionD"></textarea>
            </td>
            <td>
                <select  id="choiceAnswer" value="" style="display: none;"></select >
                <input type="text" id="textAnswer" value="" style="display: none;"></input>     
            </td>
             <td>
                <button onclick="questionSubmit()" id="questionSubmit" disabled>提交</button>
                <button onclick="textareaClear()">清空</button>
             </td>
        </tr>
        <tr>
            <td><h3>导入导出</h3></td>
            <td colspan="8">
                <input type="file" id="fileSelect" style="width: 100px;color: transparent;">
                <button id="importQuestion" onclick="importQuestion()">点击导入</button>
                <button><a href="../file/sample.xlsx">下载模板文件</a></button>
                <button onclick="exportQuestion()">下载题库</button>
            </td>
    </table>
    
</body>
</body>
<script src="../js/golbal.js"></script>
<Script src="../js/questionManager.js"></Script>
</html>